'use strict';
/**
 * Created by QianQi on 2017/6/13.
 */
$(function(){
    var jqMenu = $('.js-manu'),
        jqCont = $('.js-cont');
    var fMenuItemClick = function(){
        var jqThis = $(this),
            jqsCont = jqCont.children('.listtableDiv');
        if(!jqThis.hasClass('active')){
            jqsCont.removeClass('active');
            jqsCont.filter('[data-menu="'+ jqThis.attr('data-menu') +'"]').addClass('active');
            jqThis.siblings().removeClass('active');
            jqThis.addClass('active');
        }
    };
    /** =================== **/
    jqMenu.on('click.menu','.menu-item',fMenuItemClick);
    jqMenu.find('.menu-item:first').trigger('click')
});